// 发票开具汇总
export const InvoiceWriteThead = [
  {
    title: '费用月份',
    key: 'month',
    width: 100,
    render: (h, params) => {
      const month = params.row.month < 10 ? '0' + params.row.month : '' + params.row.month
      const text = params.row.year + '' + month
      return h('span', text)
    }
  },
  {
    title: '开票项目',
    key: 'invoiceItem'
  },
  {
    title: '客户名称',
    key: 'companyName'
  },
  {
    title: '客户编码',
    key: 'companyCode'
  },
  {
    title: '客户法定名',
    key: 'companyLegalName'
  },
  {
    title: '发票类型',
    key: 'invoiceType'
    // render: (h, params) => {
    //   const invoicetype = ['增值税专用发票', '增值税普通发票', '电子发票-普票']
    //   const text = invoicetype[+params.row.invoiceType + 1]
    //   return h('span', text)
    // }
  },
  {
    title: '发票号码',
    key: 'taxNumber'
  },
  {
    title: '开票税率',
    key: 'invoiceRate'
  },
  {
    title: '开票金额',
    key: 'invoiceAmount'
  },
  {
    title: '开票日期',
    key: 'createTime',
    render: (h, params) => {
      const text = params.row.createTime ? params.row.createTime.slice(0, 10) : ''
      return h('span', text)
    }
  },
  {
    title: '所属客服',
    key: 'serverName'
  }
]
